package com.metal.silver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.metal.silver.mapper.CustomerMarketMapper;
import com.metal.silver.domain.CustomerMarket;
import com.metal.silver.service.ICustomerMarketService;
import com.ruoyi.common.core.text.Convert;

/**
 * 客户营销单Service业务层处理
 * 
 * @author Kelvin
 * @date 2022-10-20
 */
@Service
public class CustomerMarketServiceImpl implements ICustomerMarketService 
{
    @Autowired
    private CustomerMarketMapper customerMarketMapper;

    /**
     * 查询客户营销单
     * 
     * @param uuid 客户营销单主键
     * @return 客户营销单
     */
    @Override
    public CustomerMarket selectCustomerMarketByUuid(String uuid)
    {
        return customerMarketMapper.selectCustomerMarketByUuid(uuid);
    }

    /**
     * 查询客户营销单列表
     * 
     * @param customerMarket 客户营销单
     * @return 客户营销单
     */
    @Override
    public List<CustomerMarket> selectCustomerMarketList(CustomerMarket customerMarket)
    {
        return customerMarketMapper.selectCustomerMarketList(customerMarket);
    }

    /**
     * 新增客户营销单
     * 
     * @param customerMarket 客户营销单
     * @return 结果
     */
    @Override
    public int insertCustomerMarket(CustomerMarket customerMarket)
    {
        return customerMarketMapper.insertCustomerMarket(customerMarket);
    }

    /**
     * 修改客户营销单
     * 
     * @param customerMarket 客户营销单
     * @return 结果
     */
    @Override
    public int updateCustomerMarket(CustomerMarket customerMarket)
    {
        return customerMarketMapper.updateCustomerMarket(customerMarket);
    }

    /**
     * 批量删除客户营销单
     * 
     * @param uuids 需要删除的客户营销单主键
     * @return 结果
     */
    @Override
    public int deleteCustomerMarketByUuids(String uuids)
    {
        return customerMarketMapper.deleteCustomerMarketByUuids(Convert.toStrArray(uuids));
    }

    /**
     * 删除客户营销单信息
     * 
     * @param uuid 客户营销单主键
     * @return 结果
     */
    @Override
    public int deleteCustomerMarketByUuid(String uuid)
    {
        return customerMarketMapper.deleteCustomerMarketByUuid(uuid);
    }
}
